#/bin/bash
mvn clean
git pull
mvn package
rm -r /usr/local/apache-tomcat-8.5.40/webapps/ROOT
cp target/Movie /usr/local/apache-tomcat-8.5.40/webapps/ROOT -r
/usr/local/apache-tomcat-8.5.40/bin/shutdown.sh
/usr/local/apache-tomcat-8.5.40/bin/startup.sh
echo "deploy success"
